package com.zjn.servicea;

import com.zjn.servicea.service.feign.ServiceAFeign;
import com.zjn.servicea.service.third.ServiceBFeign;
import com.zjn.servicea.service.third.ServiceCFeign;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@SpringBootApplication(scanBasePackages = "com.zjn.servicea")
@EnableEurekaClient
@EnableFeignClients(clients = { ServiceBFeign.class , ServiceCFeign.class})
@EnableWebMvc
@EnableConfigurationProperties
@EnableTransactionManagement
public class ServiceaApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceaApplication.class, args);
    }

}
